package com.example.warehouse.dto;

import java.util.List;

/**
 * 接收给角色分配权限(菜单)前端传递的数据的Dto类:
 */

public class AssignAuthDto {

    //接收请求参数roleId -- 角色id
    private Integer roleId;

    //接收请求参数authIds -- 给角色分配的所有权限(菜单)的id
    private List<Integer> authIds;

    public Integer getRoleId() {
        return roleId;
    }

    public AssignAuthDto() {
    }

    public AssignAuthDto(Integer roleId, List<Integer> authIds) {
        this.roleId = roleId;
        this.authIds = authIds;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public List<Integer> getAuthIds() {
        return authIds;
    }

    public void setAuthIds(List<Integer> authIds) {
        this.authIds = authIds;
    }
}
